﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    class Productdetail
    {
        /*** Attributter ***/

        private int productdetailId;
        private string name;
        private double price;
        private string description;
        private string replacementNote;
        private Picture image;
        private List<Color> colorList;
        
        

        /*** Constructor ***/

        public Productdetail(int productdetailId, string name, double price, string description, string replacementNote, Picture image)
        {
            this.productdetailId = productdetailId;
            this.name = name;
            this.price = price;
            this.description = description;
            this.replacementNote = replacementNote;
            this.image = image;
            this.colorList = new List<Color>();

        }

        /*** Methode ***/

        public void AddColor(Color c)
        {
            colorList.Add(c);
        }

        public List<Color> ShowColor()
        {
            return colorList;
        }

        public void RemoveColor(Color c)
        {
            colorList.Remove(c);    
        }

        /*** Properties ***/

        public int ProductdetalId
        {
            get { return productdetailId; }
            set { productdetailId = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public double Price
        {
            get { return price; }
            set { price = value; }
        }

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        public string ReplacementNote
        {
            get { return replacementNote; }
            set { replacementNote = value; }
        }
        

    }
}
